package com.jxl.application.controller.convert;

import com.jxl.domain.entity.AuthPermissionBO;
import com.jxl.dto.AuthPermissionDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthPermissionDtoConvert {

    AuthPermissionDtoConvert INSTANCE = Mappers.getMapper(AuthPermissionDtoConvert.class);

    /**
     * 类型转换
     * @param authPermissionDto
     * @return
     */
    AuthPermissionBO convertDtoToAuthPermissionBO(AuthPermissionDto authPermissionDto);

    /**
     * 集合类型转换
     * @param authPermissionDtos
     * @return
     */
    List<AuthPermissionBO> convertDtoToAuthPermissionBOList(List<AuthPermissionDto> authPermissionDtos);
}
